package com.gzhryc.jdbc.models;

/**
 * 数据库表字段信息
 * @author 张浩
 * @version 1.0.0
 */
public class DbColumn {

	private String dbName;			//数据库名称
	private String tableName;		//表名称
	private String name;			//字段名称
	private String type;			//字段类型
	private Integer charMaxLength;	//字符串长度
	private Boolean isNullable;		//是否可为空
	private Object defaultValue;	//默认值
	private String columnKey;		//是否是主键
	private String comment;			//描述
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDbName() {
		return dbName;
	}
	public void setDbName(String dbName) {
		this.dbName = dbName;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public Integer getCharMaxLength() {
		return charMaxLength;
	}
	public void setCharMaxLength(Integer charMaxLength) {
		this.charMaxLength = charMaxLength;
	}
	public Boolean getIsNullable() {
		return isNullable;
	}
	public void setIsNullable(Boolean isNullable) {
		this.isNullable = isNullable;
	}
	public Object getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(Object defaultValue) {
		this.defaultValue = defaultValue;
	}
	public String getColumnKey() {
		return columnKey;
	}
	public void setColumnKey(String columnKey) {
		this.columnKey = columnKey;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
}
